package com.tensquare.article.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.tensquare.article.pojo.Article;

import java.util.List;
import java.util.Map;

/**
 * @author BAO
 * @version V1.0
 * @Package com.tensquare.article.service
 * @date 2020/12/2 20:56
 * @description:
 */
public interface ArticleService {

    Page<Article> findAll();

    Article findById(String id);

    int add(Article article);

    int update(Article article);

    int deleteById(String id);

    Page<Article> pageSearch(Map map,Integer currentPage,Integer size);

    Boolean subscribe(String userId, String articleId);

    void thumbup(String articleId);

    void thumbupNotify(String articleId,String userid);

}
